Registry Guide for Windows Registry Guide for Windows
Part of the WinGuides Network
WinGuides Network and Software
Registry tweaks, tricks & hacks to optimize, enhance and secure Microsoft Windows.

Disable File and Printer Sharing (Windows 95/98/Me)
Category: Home > Security > Network

Download this tweak with Tweak Manager!This tweak can be easily applied using WinGuides Tweak Manager.
Download a free trial now!

When file and printer sharing is installed it allows users to make services available to other users on a network, this functionality can be disabled by changing this setting.

Open your registry and find the key below, if it doesn't already exist then create it.

Create two new DWORD values named "NoFileSharing" and "NoPrintSharing" and set the values to either '1' for sharing disabled or '0' for sharing enabled. Both settings do not have to be the same, it is possible to have one disabled and the other enabled.

Restart Windows for the change to take effect.

Registry Editor Example
|NameTypeData|
|(Default)REG_SZ(value not set)|
|NoFileSharingREG_DWORD0x00000001 (1)|
|NoPrintSharingREG_DWORD0x00000001 (1)|
-
|HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Net...|
-

Settings:
User Key: [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\
Network]

System Key: [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\
Network]

Name: NoFileSharing, NoPrintSharing
Type: REG_DWORD (DWORD Value)
Value: (0 = file sharing, 1 = disabled)

Disclaimer: Modifying the registry can cause serious problems that may require you to reinstall your operating system. We cannot guarantee that problems resulting from modifications to the registry can be solved. Use the information provided at your own risk.

Last Modified: February 12, 2003

 Return to Index Copyright © 1998-2003. All Rights Reserved.  License